package com.service;

import com.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierService {

    /**
     * 分页查询
     * @param supCode
     * @param supName
     * @param pageBegin
     * @param pageSize
     * @return
     */
    List<Supplier> select(@Param("supCode")String supCode, @Param("supName")String supName,
                          @Param("pageBegin")Integer pageBegin, @Param("pageSize")Integer pageSize);

    int count(@Param("supCode")String supCode,@Param("supName")String supName);

    /**
     * 新增数据
     * @param supplier
     * @return
     */
    boolean add(Supplier supplier);

    Supplier getSupplierById(String id);


    /**
     * 修改
     * @param supplier
     * @return
     */
    boolean update(Supplier supplier);

    List<Supplier> supplierList();

}
